package com.bbzn.device.client.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.bbzn.device.client.dao.history.PressureHisMapper;
import com.bbzn.device.client.dataobject.PressureHis;
import com.bbzn.device.client.service.PressureHisService;
@Service
public class PressureHisServiceImpl implements PressureHisService{

    @Resource
    private PressureHisMapper pressureHisMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return pressureHisMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(PressureHis record) {
        return pressureHisMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(PressureHis record) {
        return pressureHisMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(PressureHis record) {
        return pressureHisMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(PressureHis record) {
        return pressureHisMapper.insertSelective(record);
    }

    @Override
    public PressureHis selectByPrimaryKey(Long id) {
        return pressureHisMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(PressureHis record) {
        return pressureHisMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(PressureHis record) {
        return pressureHisMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<PressureHis> findByAll(PressureHis pressureHis) {
        return pressureHisMapper.findByAll(pressureHis);
    }

    @Override
    public int deleteByImei(String imei) {
        return pressureHisMapper.deleteByImei(imei);
    }

    @Override
    public int updateBatch(List<PressureHis> list) {
        return pressureHisMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<PressureHis> list) {
        return pressureHisMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<PressureHis> list) {
        return pressureHisMapper.batchInsert(list);
    }

}
